package sw6.pc.network;

import java.io.*;


public class ModifiedObjectInputStream extends ObjectInputStream  {
	@SuppressWarnings("rawtypes")
	Class mClass;
	
	@SuppressWarnings("rawtypes")
	public ModifiedObjectInputStream(InputStream input, Class classType) throws StreamCorruptedException, IOException
	{
		super(input);
		mClass = classType;
	}
	
    protected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException {
        ObjectStreamClass resultClassDescriptor = super.readClassDescriptor();
        resultClassDescriptor = ObjectStreamClass.lookup(mClass);
        
        return resultClassDescriptor;
    }
}

